/* 
 * File:   TUAddress.h
 * Author: arschmitz
 *
 * Created on April 3, 2011, 12:12 PM
 * Modified on April 8, 2011, 4:43 PM by Michael Sautter
 */

#ifndef TUADDRESS_H
#define TUADDRESS_H
#define ALL_ADDRESSES "255.255.255.255"

class TUAddress {
public:
    TUAddress();
    TUAddress(const char *ipAddress);
    TUAddress(const char *ipAddress, int port);
    ~TUAddress();
    bool operator==(TUAddress *other);
    int getAddress();
    struct sockaddr_in *getSockAddr();
    int getPort();
    int setAddress(const char *ipAddress);
    int setPort(int port);
    void printAddress();
private:
    int myPortNumber;
    struct sockaddr_in *myAddress;
};

#endif    /* TUADDRESS_H */
